import request from './index.js'

export default{
  //上传附件
  uploadFile: (data) =>
    request({
      url: `/sys.common/file/upload`,
      data,
      method: 'post',
      headers: {
        contentType: 'formType'
      },
        timeout: 120 * 1000
    }),
  //删除附件
  deleteFile: (data) =>
    request({
      url: `/sys.common/file/delete`,
      data,
      method: 'delete',
    }),
  //获取总数
  getCount: (data) =>
    request({
      url: `/apply/count`,
      data,
      method: 'get',
    }),
}
